package com.example.demo_test.Service;

import com.example.demo_test.DTO.UserAndMessage;
import com.example.demo_test.Entity.ReqRecord;
import com.example.demo_test.Entity.User;
import com.example.demo_test.Entity.Result;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface PersonService {
    Result Login(String userId,String password);
    List<User> getFriends(String userId);
    User getUserById(String userId);

    Result addFriend(String userId, String friendId);
    //获取自己的所有请求记录
    List<ReqRecord> getReqRecordById(String userId);
    //同意或拒绝当前请求
    Result agreeReqRecord(ReqRecord reqRecord);

    Result register(String loginName, String password,String userName);

    Result updateUser(User user);

    List<UserAndMessage> getFriendsAndMessage(String userId);

    Result changePassword(int eid, String newPassword);

    Result deleteFriend(String userId, String friendId);
//    List<Certificate> getUserList(Page page);
//    int getUserCount();
//    Result addUser(Certificate certificate);
//    Result editUser(Certificate certificate);
//    Result deleteUser(int certificateId);
//    Result changeStatus(Certificate certificate);

}
